// /import core
// /commands 全选
/**
 * 选中所有
 * 
 * @function
 * @name baidu.editor.execCommand
 * @param {String}
 *            cmdName selectall选中编辑器里的所有内容
 * @author zhanyi
 */
(function() {
	var browser = baidu.editor.browser;
	baidu.editor.commands['selectall'] = {
		execCommand : function() {
			this.document.execCommand('selectAll', false, null);
			// trace 1081
			!browser.ie && this.focus();
		},
		notNeedUndo : 1
	};
})();
